All right, let's get started. What is Cloud Run? I want to explain Google Cloud Run
in one diagram and tell you why I am so excited about it. The Cloud Run developer workflow is
a straightforward three-step process. First, you write your application using
your favorite programming language. This application should start a server
that listens for web requests. Second, you build and package your
application into a container image. Finally, you deploy the container
image to Cloud Run. Once you've deployed your container image,
you'll get a unique https URL back. Cloud Run, then start your container
on demand to handle requests and ensures that all incoming
requests are handled by dynamically adding and
removing containers. Cloud Run is serverless. That means that you as a developer can
focus on building your application and not on building and maintaining the infrastructure
that powers your application. This is something software
developers can be excited about. For some use cases, a container-based
workflow is great because it gives you a great amount of
transparency and flexibility. If you build the container image,
you have the power to decide exactly what file ends up in your
container image and how it gets there. However, building an application is
hard enough already let alone having to think about the containerization and
the responsibilities that come with that. Sometimes you're looking for a way to turn
source code into a https endpoint and you want your vendor to make sure
your container image is secure, well configured and
built in a consistent way. With Cloud Run, you can do both. You can use a container-based workflow
as well as a source-based workflow. If you use the source-based approach, you'll deploy your source code
instead of a container image. Cloud Run then builds your source and packages the application into
a container image for you. Cloud Run does this using build packs,
which is an open source project. Cloud Run handles https serving for you. This means you only have to worry
about handling web requests and you can let Cloud Run take
care of adding the encryption. By default, your application
is exposed on a unique sub domain of the global run.app domain. You can also use your own custom domain. Cloud Run manages everything else. Generating a valid SSL certificate,
configuring an SSL termination correctly would secure settings,
handling incoming requests, decrypting them, and
forwarding them to your application. The pricing model on Cloud Run
is unique as you only pay for the system resources you use while
a container is handling web requests with the granularity of 100 milliseconds. And when it is starting or
shutting down, you do not pay for anything if your container
does not handle requests. Additionally, there is a small fee for
every 1 million requests you serve. The price of container time
increases with CPU and memory. A container with more VCPU and
memory is more expensive. Today, Cloud Run can
allocate up to 4 VCPUs and 8 gigabyte of memory. Most of the other compute products
such as compute engine charge for servers as long as they are running,
even if you are not using them, this means you are often paying for
idle server capacity. One particular advantage of Cloud Run
is that it runs containers. This means that you can use
Cloud Run to run binary as long as it is compiled for
Linux 64-bit. Now this means you can use
Cloud Run to run web applications written using popular
languages such as Java, Python, Node JS, PHP, Go, or C++. You can also run code written in
a less popular language such as COBOL, Haskell or pill. As long as your app handles web requests,
you're good to go. This is Cloud Run in a nutshell. It is a managed product on
Google Cloud that runs and autoscales containers on demand. You can deploy any application
that handles web requests. You can use a source-based or
container-based workflow. Cloud Run handles HTTPS services. The pricing is serverless,
which means you only pay for what you use.